Putting the cart before the horse

Doing something out of order that makes the task more challenging or impossible to complete